package com.str.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * @author ZhangWu, Anything is possible!
 * @date 2022/3/17 13:56
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "登录提交请求dto", description = "登录提交请求dto")
public class LoginSubmitDto {


    /**
     * 登录方式：1：密码登录，2：验证码登录
     */
    @ApiModelProperty(value = "登录方式：1：密码登录，2：验证码登录")
    @NotNull(message = "登录手机号码不能为空")
    private Integer loginType;
    /**
     * 登录手机号码
     */
    @ApiModelProperty(value = "登录手机号码")
    @NotNull(message = "登录手机号码不能为空")
    private String phone;
    /**
     * 登录密码
     */
    @ApiModelProperty(value = "登录密码")
    private String password;
    /**
     * 短信验证码
     */
    @ApiModelProperty(value = "短信验证码")
    private String code;
}
